<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>  
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <title>Wild Fire Learning Solutions</title>
  <link href="css/style.css" rel="stylesheet" type="text/css" />
  <script src="datafeed.js" type="text/javascript"></script>

</head>


<body>
<?php
session_start();

//############################################
//Now import the settings
include_once("settings.php");

//############################################
//Connect to the db
mysql_connect($db_host,$MySqlUN,$MySqlPW);
@mysql_select_db($database) or die( "Unable to select databases");

//get our variable passed through the URL
$prodid = $_REQUEST['prodid'];

//get information on the specific product we want
$query = "select * from products where products_prodnum = '$prodid'";
$results = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_array($results);
extract($row);
?>
<div id="contain">
	<?php include("header.php"); ?>

<!--Navigation and LHS-->
	<div id="leftcol">
		<?php include("menu.php"); ?>
	</div>
<!-- Nav ends -->

<!-- Content (RHS) -->
<div id="content">
<p>
<table cellpadding="5" width="80%">
	<tr>
		<td>PRODUCT IMAGE</td>
		<td><strong><?php echo $products_name; ?></strong><br>
		<?php echo $products_proddesc; ?><br/>
		<br>Product Number: <?php echo $products_prodnum; ?>
		<br>Price: $<?php echo $products_price; ?><br>
		<form method="POST" action="modcart.php?action=add">
		Quantity: <input type="text" name="qty" size="2"><br>
		<input type="hidden" name="products_prodnum" value="<?php echo $products_prodnum; ?>" >
		<input type="submit" name="Submit" value="Add to cart">
		</form>
		
		<form method="post" action="cart.php">
		<input type="submit" name="Submit" value="View cart">
		</form>
		</td>
		</tr>
		</table>
		<hr width="200">
		<p><a href="products.php">Go back to the main page</a></p>
</p>
</div>
<!-- content ends (RHS) -->
<?php include("footer.php"); ?>
</div>
</body>
</html>